/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.kungkhies.desktop.kungkhie.template.explorer;

import com.kungkhies.desktop.library.entities.Kungkhie;
import java.util.List;
import javax.swing.Action;
import org.openide.nodes.AbstractNode;
import org.openide.nodes.Children;
import org.openide.util.NbBundle.Messages;
import org.openide.util.Utilities;

/**
 *
 * @author clayton
 */
public class KungkhieTemplateRootNode extends AbstractNode
{
    @Messages("CTRL_RootName=Root")
    public KungkhieTemplateRootNode(Children kids)
    {
        super(kids);
        setDisplayName("Kungkhie Templates");
    }

    @Override
    public Action[] getActions(boolean context)
    {
        List actionsForKungkhieTemplate = Utilities.actionsForPath("Actions/Kungkhie");
        return (Action[]) actionsForKungkhieTemplate.toArray(new Action[actionsForKungkhieTemplate.size()]);
    }
}
